<div class="uk-layui-form">
	<form class="layui-form uk-form" action="/admin/organ/auth/save.html">
		<input type="hidden" name="id" value="${organData.id!''}">
		<div class="layui-form-item">
			<label class="layui-form-label">选择部门授权角色：</label>
		    <div class="layui-input-block" style="padding-top:0px;">
		    	<#if roleList??>
			    	<#list roleList as role>
			    	<div><input type="checkbox" name="roles" value="${role.id!''}" title="${role.name!''}" lay-skin="primary" <#if organRoleList??><#list organRoleList as organRole><#if organRole.role?? && organRole.role.id == role.id>checked="checked"</#if></#list></#if>></div>
			    	</#list>
		    	<#else>
		    	<div><i>无角色信息</i></div>	
		    	</#if>
		    </div>
		</div>
		<div class="layui-form-button">
			<div class="layui-button-block">
				<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
</div>
<SCRIPT type="text/javascript">
layui.use('form', function(){
	  var form = layui.form();
	  form.render(); //更新全部
});	
</SCRIPT>
